package com.fzg.common.demo.practice;


import com.fzg.common.tool.builder.Builder;
import com.fzg.entity.Blog;
import lombok.extern.slf4j.Slf4j;


/**
 * create by fzg
 * 2022/12/15 9:45
 */

@Slf4j
public class Demo01 {

    public static void main(String[] args) {
        Blog blog = Builder.builder(Blog::new).with(Blog::setBlogImgurl, "https://img2.baidu.com/it/u=1003272215,1878948666&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800")
                .with(Blog::setContent, "红嘴鸥").with(Blog::setIsPublish, 1)
                .with(Blog::setLikeNum, 231).with(Blog::setTags, "animals")
                .with(Blog::setUserAid, 2).build();
        log.info(blog.toString());
    }

}
